<?php
class TrafficController implements ControllerInterface{
	private $_view;
	private $_fontController;
	
	public function __construct(){
		session_start();
		$view = $this->_view = new View();
		$fc = $this->_fontController = FontController::getInstance();
		if (lib::getItem('adminname')){
			
		}else{
			MessageBox::errorMessage("尚未登陆", "尚未登陆，请登陆", "admin/login");
		}
		
	}
	
	public function IndexAction(){
		$view = $this->getView();
		$fc = $this->getFontController();
		$body = $view->render('traffic/index.php');
		$fc->setBody($body);
	}
	
	public function getView(){
		return $this->_view;
	}
	
	public function getFontController(){
		return $this->_fontController;
	}
}